{% extends 'rbac/base.html' %}
{% block addcss %}
    <link href="/static/css/plugins/dropzone/basic.css" rel="stylesheet">
    <link href="/static/css/plugins/dropzone/dropzone.css" rel="stylesheet">
    <style>
        .others a {
            margin-right: 5px;
        }
    </style>
{% endblock %}

{% block content %}
    {% load menu %}
    {% breadcrumb request %}

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-lg-9">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="row m-t-sm">
                            <div class="col-lg-12">
                                <div class="panel blank-panel">
                                    <div class="panel-heading">
                                        <div class="panel-options">
                                            <ul class="nav nav-tabs">
                                                <li><a class="nav-link active" href="#tab-1" data-toggle="tab">Ansible 日志</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="panel-body">
                                        <div class="tab-content">
                                            <div class="tab-pane active" id="tab-1">
                                                <div class="feed-activity-list">
                                                    <div class="feed-element">
                                                        <a href="#" class="float-left">
                                                        </a>
                                                        {% for row in data_list %}
                                                            <div class="media-body ">
                                                                <div class="hr-line-dashed"></div>


                                                                <p class="">完成时间: &nbsp;
                                                                    {{ row.end_time }}</p>

                                                                <p class="">上线日志: &nbsp;</p>
                                                                <pre>{{ row.log }}</pre>

                                                            </div>
                                                        {% endfor %}

                                                    </div>
                                                </div>
                                                <div class="col-sm-12 clearfix">
                                                    <ul class="pagination float-right">
                                                        {{ pager.page_html|safe }}
                                                    </ul>
                                                </div>

                                            </div>

                                        </div>

                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}

{% block addjs %}

{% endblock %}